package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the DRUGSTORAGE_DEMAGE database table.
 * 
 */
@Entity
@Table(name="DRUGSTORAGE_DEMAGE")
@NamedQuery(name="DrugstorageDemage.findAll", query="SELECT d FROM DrugstorageDemage d")
public class DrugstorageDemage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="DRUGSTORAGE_DEMAGE_ID")
	private long drugstorageDemageId;

	@Column(name="MEDCINE_COST")
	private BigDecimal medcineCost;

	@Temporal(TemporalType.DATE)
	@Column(name="MEDCINE_DATE")
	private Date medcineDate;

	@Column(name="MEDCINE_NUMBER")
	private BigDecimal medcineNumber;

	@Column(name="MEDCINE_RESON")
	private String medcineReson;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public DrugstorageDemage() {
	}

	public long getDrugstorageDemageId() {
		return this.drugstorageDemageId;
	}

	public void setDrugstorageDemageId(long drugstorageDemageId) {
		this.drugstorageDemageId = drugstorageDemageId;
	}

	public BigDecimal getMedcineCost() {
		return this.medcineCost;
	}

	public void setMedcineCost(BigDecimal medcineCost) {
		this.medcineCost = medcineCost;
	}

	public Date getMedcineDate() {
		return this.medcineDate;
	}

	public void setMedcineDate(Date medcineDate) {
		this.medcineDate = medcineDate;
	}

	public BigDecimal getMedcineNumber() {
		return this.medcineNumber;
	}

	public void setMedcineNumber(BigDecimal medcineNumber) {
		this.medcineNumber = medcineNumber;
	}

	public String getMedcineReson() {
		return this.medcineReson;
	}

	public void setMedcineReson(String medcineReson) {
		this.medcineReson = medcineReson;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}